
{{ profile.merchantUser.username }}'s main page <br/>

{% if logged_user.is_superuser %}
	<form name="profileApproveHandler" id="profileApproveHandler" method="post" action="/member/profile/approve/{{profile.id}}/">
         <input value="approve" type="submit" id="approve" name="approve">
          {% csrf_token %}
   </form>

   {% for key, value in locales.items %}
	description {{key.1}}: <br/>
		{{value.loc_profile}} <br/>
   {% endfor %}
{% endif %}


description: <br/>
{{ profile_text }} <br/>

age: {{ profile.merchantUser.age }} <br/>

pics: <br/>

{% for image_el in profile.images.all %}
<img src="{{ MEDIA_URL }}{{image_el.thumbnail}}" width="60" height="60"/>  <br/>
{% endfor %}

{% if logged_user %}
  {% if enableSend == True %}
  send a request to {{profile.merchantUser.username}}: <br/>
  <form name="signUp" method="post" action="/member/request/create/{{logged_user.id}}/{{profile.merchantUser.id}}/">
  <textarea rows="4" cols="50" name="request_text" id="request_text">
  </textarea>
  {% csrf_token %}
   <input type="submit" value="request"/>
  </form>
  {% else %}
  <p>You have pending request to {{profile.merchantUser.username}}</p>
  {% endif %}
{% else %}
  <a href="/member/shopperSignUpForm/"> Sign up now! </a> to send a request to {{user.username}}  <br/>
{% endif %}



{% if messages %}
    {% for message in messages %}
       {{ message }} <br/>
    {% endfor %}
{% endif %}